package com.healthcloud.service.PatientRecord.impl;

import com.healthcloud.dao.PatientRecord.HcMedicalDao;
import com.healthcloud.dao.PatientRecord.VitalCharacteristicsDao;
import com.healthcloud.entity.PatientRecord.HcMedicalEntity;
import com.healthcloud.entity.PatientRecord.HcMedicalEntityQh;
import com.healthcloud.entity.accompany.VitalCharacteristics;
import com.healthcloud.service.PatientRecord.HcMedicalService;
import com.healthcloud.service.PatientRecord.VitalCharacteristicsService;
import com.healthcloud.utils.PageParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service("VitalCharacteristicsService")
@Transactional
public class VitalCharacteristicsServiceImpl implements VitalCharacteristicsService {

    @Autowired
    private VitalCharacteristicsDao vitalCharacteristicsDao;


    @Override
    public List<VitalCharacteristics> queryList(VitalCharacteristics entity, PageParam pageParam) {
        return vitalCharacteristicsDao.queryListQh(entity,pageParam);
    }

    @Override
    public int queryTotal(VitalCharacteristics entity) {
        return vitalCharacteristicsDao.queryTotalQh(entity);
    }

    @Override
    public void save(VitalCharacteristics entity) {
        vitalCharacteristicsDao.saveQh(entity);
    }

    @Override
    public void deleteVitalCharacteristics(Long[] ids) {
        vitalCharacteristicsDao.deleteVitalCharacteristics(ids);
    }

    @Override
    public void updateVitalCharacteristics(VitalCharacteristics entity) {
        vitalCharacteristicsDao.updateVitalCharacteristics(entity);
    }
	/*

	@Override
	public HcMedicalEntity queryObject(Integer id){
		return hcMedicalDao.queryObject(id);
	}



	@Override
	public void save(HcMedicalEntity hcMedical){
		hcMedicalDao.save(hcMedical);
	}

	public void update(HcMedicalEntity hcMedical) {
		hcMedicalDao.update(hcMedical);
	}

	@Override
	public void deleteBatch(Long[] ids) {
		hcMedicalDao.deleteBatch(ids);
	}



	@Override
	public void saveQh(HcMedicalEntity entity) {
		hcMedicalDao.saveQh(entity);
	}

	*/
}
